import request from '@/utils/aliyunRequest';

const optionApi = {};

optionApi.list = () => {
	return request({
		url: '/aliyun-api/option/list',
		method: 'get',
	})
}
optionApi.page = (params) => {
	return request({
		url: '/aliyun-api/option/page',
		method: 'get',
		params: params,
	})
}
optionApi.add = (params) => {
	return request({
		url: '/aliyun-api/option',
		method: 'post',
		data: params,
	})
}
optionApi.update = (params) => {
	return request({
		url: '/aliyun-api/option',
		method: 'put',
		data: params,
	})
}
optionApi.get = (id) => {
	return request({
		url: '/aliyun-api/option/' + id,
		method: 'get',
	})
}
optionApi.delete = (id) => {
	return request({
		url: '/aliyun-api/option/' + id,
		method: 'delete',
	})
}


export default optionApi